package com.mars.sso.client.filter;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class SSOUserImpl implements SSOUser {
	
	private static final Map<String, Object> PROPERTY_MAP = new HashMap<String, Object>() ;
	
	private Object id ;
	
	public SSOUserImpl(Object id) {
		this.id = id ;
	}
	
	/**
	 * 写入属性
	 * @param properties
	 */
	public void setProperties(Map<String, Object> properties) {
		PROPERTY_MAP.putAll(properties);
	}

	@Override
	public Object getId() {
		return id;
	}

	@Override
	public Object getProperty(String propertyName) {
		return PROPERTY_MAP.get(propertyName);
	}

	@Override
	public Set<String> propertyNames() {
		return PROPERTY_MAP.keySet();
	}

}
